home *** CD-ROM | disk | FTP | other *** search
/ Shareware Direct / Shareware Direct.iso / esf / lj3fonts / softfont.doc < prev    next >
Text File  |  1991-08-29  |  22KB  |  472 lines

  1.  
  2.  
  3.  
  4.   ─────────── The Soft Font Tutorial
  5.  
  6.                      Copyright 1991 by Elfring Soft Fonts
  7.                              All rights reserved.
  8.  
  9.                                  INTRODUCTION
  10.  
  11.   Both laser printers and the DeskJet have become quite popular of late.
  12.   What's the reason for this surge in popularity?  A laser printer is faster
  13.   and much quieter than a dot matrix printer, although they cost a great
  14.   deal more. So why buy one? The majority of these printers are purchased
  15.   because of the wide variety of fonts they support.
  16.  
  17.   Unfortunately, it isn't until you've owned the printer for awhile that you
  18.   discover just how hard it can be to actually use those fonts.  A fair num-
  19.   ber of people never do learn how to use different fonts with their
  20.   printers.
  21.  
  22.   The major difficulty with fonts is finding a complete source of informa-
  23.   tion about them.  To use fonts with your laser printer you need: some
  24.   background information on typography, definitions of laser printer ter-
  25.   minology, explanations of fonts and how they are named, and details of the
  26.   printer control language, PCL, used by the HP LaserJet and compatible
  27.   printers.
  28.  
  29.   There are three different kinds of fonts available for HP LaserJet and
  30.   compatible printers, or the DeskJet.  These are: internal fonts, cartridge
  31.   fonts, and soft fonts.  Once you start printing with these fonts there are
  32.   no real differences between them.  However, getting to the point where you
  33.   can actually print something with these fonts takes some doing. Note that
  34.   DeskJet soft fonts are not compatible with LaserJet fonts.
  35.  
  36.   There are some disadvantages to soft fonts.  They take up a considerable
  37.   amount of disk space.  They also must be sent to your laser printer before
  38.   they can be used.  Finally, soft fonts are volatile- when you turn off the
  39.   power to your laser printer they vanish.  We feel, however, that the ad-
  40.   vantages listed previously greatly outweigh the disadvantages listed here.
  41.   Hence the need for this tutorial.
  42.  
  43.   Hopefully, this tutorial will provide you with the information you need to
  44.   take control of your laser printer. Armed with this information you should
  45.   have no trouble selecting and using soft fonts in your printer.
  46.  
  47.   One final note about the DeskJet printer. The DeskJet is a true line
  48.   printer, not a page printer. While it can handle soft fonts, it requires
  49.   an add on memory cartridge to do so. The DeskJet also has other limita-
  50.   tions, most of which are based on the fact that it is a line printer.
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.                                       1
  59.  
  60.  
  61.  
  62.  
  63.                                 LASER PRINTING
  64.  
  65.   Before going further into the details of soft fonts it's necessary to ex-
  66.   plain some of the basics of laser printing and its terminology.  If you
  67.   are new to laser printing you need to have a thorough understanding of of
  68.   what a laser printer is and how it works before progressing on to soft
  69.   fonts.  The first thing to do is to define a number of new terms as-
  70.   sociated with laser printers.
  71.  
  72.   The type of printer that most people are familiar with is a typewriter.
  73.   With a typewriter, you strike a key and a character is printed.  A dot
  74.   matrix printer is very similar in nature to a typewriter.  You instruct it
  75.   to print a string of characters on one line and the dot matrix printer
  76.   prints each one sequentially.  With both typewriters and dot matrix
  77.   printers vertical spacing is usually accomplished by sending a carriage
  78.   return to the printer.
  79.  
  80.   A laser printer operates on a completely different manner.  Laser printers
  81.   build and print an entire page at a time.  An invisible cursor is used to
  82.   build this page. The cursor tells the laser printer where to put each
  83.   character on the page.  This cursor can be moved automatically by software
  84.   in the laser printer, or it can be addressed with software on your PC.
  85.  
  86.   To use a laser printer you must send an entire page of text, followed by a
  87.   command to print it.  (If you send more text than will fit on a single
  88.   page, the laser printer will interpret that as a command to print the
  89.   first page.) The interesting thing to note here is that the text that is
  90.   sent to the printer does not have to appear in any specific order.  You
  91.   can print at the bottom of the page, move to the top, and then go back to
  92.   the middle of the page.  As long as you don't go past the bottom of the
  93.   page, or send a "print page" command (Control-L) the laser printer will
  94.   not appear to do anything.  It will simply sit passively and receive your
  95.   text.
  96.  
  97.   A dot matrix printer normally prints from left to right and from top to
  98.   bottom on a page.  (The more advanced dot matrix printer prints bi-
  99.   directionally, but still must advance from the top to the bottom of a
  100.   page.) A laser printer has no restraints on what direction it prints.  So,
  101.   it then becomes possible to print in several different ways, or orienta-
  102.   tions, on a sheet of paper.  Thus a new set of terms are needed to define
  103.   the orientation of text on a page.
  104.  
  105.   A page may be printed in either portrait or landscape modes.  In portrait
  106.   mode the paper is positioned just as it would be in a typewriter.  The 8.5
  107.   inch dimension of the paper runs horizontally and the 11 inch dimension of
  108.   the paper runs vertically.  Text appears to run from left to right and
  109.   from top to bottom on the page.
  110.  
  111.   In landscape mode the paper is positioned as you would place an envelope
  112.   in a typewriter.  The 11 inch dimension of the paper runs horizontally and
  113.   the 8.5 inch dimension of the paper runs vertically.  Text still appears
  114.   to run from left to right and from top to bottom on the page, but the page
  115.   has been rotated 90 degrees.
  116.  
  117.                                       2
  118.  
  119.  
  120.  
  121.  
  122.   ┌──────────┐  ┌──────────────────────────┐
  123.   │          │  │                          │
  124.   │          │  │       landscape          │
  125.   │ portrait │  │                          │
  126.   │          │  │                          │
  127.   │          │  │          mode            │
  128.   │          │  │                          │
  129.   │   mode   │  └──────────────────────────┘
  130.   │          │
  131.   │          │
  132.   └──────────┘
  133.  
  134.   Note that the DeskJet Plus and the DeskJet 500 printers can perform
  135.   limited landscape printing using fixed width cartridge of soft fonts. The
  136.   original DeskJet can only perform landscape printing with the addition of
  137.   a special cartridge. None of these printers can print proportionally
  138.   spaced fonts in landscape orientation.
  139.  
  140.  
  141.                           LASERJET & DESKJET BASICS
  142.  
  143.   There are ten different models of LaserJet printers, and three different
  144.   DeskJet printers. Each model has different font handling capabilities and
  145.   comes with a different set of fonts. There are actually three different
  146.   kinds of fonts for either the LaserJet or the DeskJet printer and we
  147.   should define these before going further. Note that DeskJet and LaserJet
  148.   fonts are not interchangeable.
  149.  
  150.   INTERNAL FONTS are stored inside your laser printer in Read-Only-Memory.
  151.   Each LaserJet model has a different set of internal fonts. Most compatible
  152.   printers offer different sets of internal fonts.
  153.  
  154.   CARTRIDGE FONTS are Read-Only-Memory fonts that can be added or removed
  155.   from a laser printer. They come in a small box, or cartridge, that can be
  156.   plugged into your printer. Functionally, there is no difference between
  157.   internal and cartridge fonts once the cartridge is plugged into your
  158.   printer.
  159.  
  160.   SOFT FONT is a term used to describe laser printer fonts that are sold on
  161.   a floppy disk. These fonts must be sent to a laser printer, downloaded,
  162.   before they can be used. They are stored in RAM memory in your laser
  163.   printer. See the following sections for a much more detailed explanation
  164.   of soft fonts.
  165.  
  166.  
  167.                              LASERJET RAM MEMORY
  168.  
  169.   All LaserJet printers require a certain amount of RAM memory in order to
  170.   run. Determining exactly how much memory you will need for your printer
  171.   has never been an easy task. The basic LaserJet II is equipped with 512K
  172.   of RAM, and a LaserJet III has 1 megabyte. Of this amount 295K or 807K,
  173.   respectively, is available for your use. All soft fonts are stored in this
  174.  
  175.  
  176.                                       3
  177.  
  178.  
  179.  
  180.  
  181.   memory and all graphic images must also be stored here before they are
  182.   printed.
  183.  
  184.   A soft font requires about as much storage space in your laser printer as
  185.   it does in a disk file. Actually, there is a complicated formula that
  186.   determines exactly how much memory is used. However, it is easier to ap-
  187.   proximate it this way. A typical 10 to 12 point soft font requires 12K to
  188.   15K bytes of storage. More space is required for fonts that include ex-
  189.   tended character sets. In general, the larger the soft font size the more
  190.   disk space it requires.
  191.  
  192.   So, if you are not printing any graphic images that 295K of free RAM space
  193.   can hold quite a few soft fonts. The average user does not need any extra
  194.   memory in this case.
  195.  
  196.   If you plan on printing graphics you will need to set aside memory space
  197.   for them. A LaserJet can print to within 1/4 inch of each border. This
  198.   gives you an 8 x 10.5 inch area, or 84 square inches. At a resolution of
  199.   300 dots per inch you need 7,560,000 bits to hold this image. This is
  200.   equivalent to 945,000 bytes of memory. Adding a 1 megabyte memory board to
  201.   you LaserJet gives you a total of 1,048,576 bytes plus the original 295K,
  202.   or 1,343,576 bytes.
  203.  
  204.   Thus, by adding a 1 megabyte memory card you can print a full page of
  205.   graphics and still have 398,576 bytes of RAM left for soft font storage.
  206.   This is probably all the memory you will ever need.
  207.  
  208.   There are a number of PostScript add-on cartridges for the LaserJet line
  209.   of printers. In general, these cartridges need a large amount of addi-
  210.   tional memory before they will work. You usually need to add a minimum of
  211.   2 megabytes of memory to use a PostScript cartridge. You may have to add
  212.   as much as 4 megabytes.
  213.  
  214.  
  215.                               DESKJET RAM MEMORY
  216.  
  217.   All DeskJet and DeskJet Plus printers come equipped with 0K of soft font
  218.   RAM memory. Soft fonts will not work unless you purchase an add-on memory
  219.   cartridge. Each add-on cartridge for the DeskJet gives you 128K of addi-
  220.   tional RAM memory. A DeskJet will accept two of these cartridges giving
  221.   you a maximum of 256K of memory for soft fonts. The DeskJet Plus add-on
  222.   RAM cartridges contain 256K of RAM. This printer also has two slots so a
  223.   Plus can have up to 512K of RAM.
  224.  
  225.   Note that the only use for RAM memory in either DeskJet printer is for
  226.   soft font storage. Additional memory will not speed the printer up, be
  227.   used as a printer buffer, or let you do landscape printing.
  228.  
  229.   Determining exactly how much memory you will need for your printer has
  230.   never been an easy task. The DeskJet further complicates this by offering
  231.   algorithmic bolding and half sizing of soft fonts. Thus a 12 point medium
  232.   weight font also works as a 6 point medium weight, a 12 point bold, and a
  233.   6 point bold font!
  234.  
  235.                                       4
  236.  
  237.  
  238.  
  239.  
  240.   A soft font requires about as much storage space in your DeskJet as it
  241.   does in a disk file. Actually, there is a complicated formula that deter-
  242.   mines exactly how much memory is used. However, it is easier to ap-
  243.   proximate it this way. A typical 10 to 12 point soft font requires 14K to
  244.   17K bytes of storage. More space is required for fonts that include ex-
  245.   tended character sets. In general, the larger the soft font size the more
  246.   disk space it requires. A typical DeskJet soft font is larger than the
  247.   corresponding LaserJet font.
  248.  
  249.   Since the DeskJet is a line printer, graphic images do not take up any
  250.   memory space since they are not stored in the printer. Graphic printing is
  251.   slower than printing with internal or soft fonts. Adding memory to the
  252.   printer does not effect the print speed at all.
  253.  
  254.  
  255.                                   SOFT FONTS
  256.  
  257.   All LaserJet and DeskJet fonts are bit-mapped. The laser in your laser
  258.   printer marks individual dots to print on a photo-sensitive drum. These
  259.   dots combine to print a letter or draw a line. The LaserJet series of
  260.   printers have a resolution of 300 dots per inch. So everything the printer
  261.   does needs to eventually be turned into a series of dots or bits.
  262.  
  263.   The DeskJet uses a 50 dot ink jet, with a horizontal resolution of 600
  264.   dots per inch and a vertical resolution of 300 dots per inch. No two
  265.   horizontal dots can ever be printed side by side, so for all practical
  266.   purposes the DeskJet's resolution is the same as the LaserJets.
  267.  
  268.   Before we can intelligently discuss soft fonts we need to define a few
  269.   typographic terms that will be coming up repeatedly.  These definitions
  270.   will help you understand how bit-mapped fonts are designed and created.
  271.   Three terms in particular are very important.  These are typeface, font,
  272.   and character.
  273.  
  274.   A TYPEFACE is a particular design or description of what an entire al-
  275.   phabet should look like.  A typeface is independent of the size, height,
  276.   and weight, thickness, of the letters in it.  All right, for the really
  277.   detailed person we'll admit that there may be several typefaces that
  278.   describe a single alphabet on a typesetting machine.  This is not,
  279.   however, usually the case with laser printers.
  280.  
  281.   A FONT is an implementation of a typeface in a single size and weight.  A
  282.   font is something tangible.  You can buy, rent, or lease a font and use it
  283.   to produce printed documents.  By contrast, a typeface is only a design,
  284.   and thus intangible.  Each font contains a collection of characters that
  285.   follow the design of a particular typeface.
  286.  
  287.   Finally, a CHARACTER is a single letter or symbol within either a typeface
  288.   or font.  Once again, a character in a font is tangible and can be used to
  289.   print something.  A character in a typeface is simply a design.
  290.  
  291.   Just what is a soft font?  A soft font is simply an implementation of a
  292.   typeface in a particular size and weight that is saved as a disk file.  A
  293.  
  294.                                       5
  295.  
  296.  
  297.  
  298.  
  299.   soft font is particular to the laser printer it will be used on, not the
  300.   computer system used to store and transmit it.  Soft fonts designed for
  301.   the HP LaserJet will not work with a Xerox 9700 laser printer, even though
  302.   both printers operate in the same way at the same resolution.  On the
  303.   other hand, a soft font for the HP LaserJet can be stored and used from an
  304.   IBM PC or an Apple Macintosh.
  305.  
  306.   A soft font is a collection of binary information that describes how to
  307.   print all the characters in a typeface.  The soft font also contains addi-
  308.   tional information about horizontal spacing, underlining, kerning, and
  309.   copyrights.  An HP LaserJet prints at a resolution of 300 dots per inch.
  310.   So each character definition in a soft font must tell your laser printer
  311.   where to put each successive dot in that character.
  312.  
  313.   So . . .  a soft font is a collection of dot patterns for a laser printer.
  314.   The exact format or organization of this information varies among dif-
  315.   ferent brands of laser printers.  Each point size or weight requires a
  316.   different soft font disk file.
  317.  
  318.   Note that all fonts for HP laser printers are bit mapped.  The font file
  319.   stores a specific bit value for each dot that will appear on the laser
  320.   printer.  Contrast this to a PostScript printer where outlines are used to
  321.   generate fonts.  (Please remember that even PostScript printers eventually
  322.   turn their font information into a pattern of individual dots.) In
  323.   general, quality 300 dpi bit mapped fonts will look better than those
  324.   produced from outlines, such as PostScript.
  325.  
  326.   There are some inherent problems with the 300 dot per inch resolution used
  327.   on most laser printers.  This affects the quality of the soft fonts used
  328.   on them.  The 300 dpi resolution is at the limits of human vision.  Almost
  329.   anyone can "see" one three-hundreths of an inch.  When you create a soft
  330.   font from an outline format it must be translated into a bit-mapped for-
  331.   mat.  Some jagged edges will always result from this process.  A hand
  332.   edited font can correct those jagged edges.  Thus, most soft fonts
  333.   produced from outlines do not look as good as a hand edited font.
  334.  
  335.   PostScript fonts contain "hints" that help avoid some of these problems.
  336.   Outline soft font generators for the LaserJet typically don't have this
  337.   advantage.  However, even the best PostScript font can not compare with a
  338.   hand edited, bit mapped font.  Hand edited fonts custom shape each charac-
  339.   ter so the fonts look as good as possible.  In addition, hand edited fonts
  340.   are typically dithered or feathered.  A dithered font gives much the same
  341.   effect as printing with double the normal resolution.  (The HP Letter
  342.   Gothic font is a good example of what can be done with this process.)
  343.  
  344.  
  345.                                USING SOFT FONTS
  346.  
  347.   Using soft fonts is not as simple as it may seem. You can't just copy a
  348.   font to your printer and print with it in your word processor. It can even
  349.   be difficult to use a font from the MS-DOS command line! Just what is in-
  350.   volved in using a font? This section should answer your general questions
  351.   about using fonts.
  352.  
  353.                                       6
  354.  
  355.  
  356.  
  357.  
  358.   Before you can print with a soft font there are several things you must
  359.   do. First, that font must be sent to your printer. The process of sending
  360.   a soft font to a printer is called downloading. Downloading a font is
  361.   *not* the same thing as simply copying the font to your printer. The
  362.   printer must be told that this is a soft font and given information on how
  363.   to store it.
  364.  
  365.   Next, you have to select the font. Just downloading a font to your printer
  366.   does not make it active (an active font is the one you are currently
  367.   printing with). A printer can hold numerous fonts inside its memory, but
  368.   can only print with a single font at one time. To select a font (making a
  369.   font active) in your printer you need to send a special control string to
  370.   the printer telling it how to locate the font.
  371.  
  372.   Finally, most (but not all) soft fonts are proportionally spaced. This
  373.   means every character in the font occupies a different amount of space
  374.   (has a different width). Your application program needs to have a method
  375.   for dealing with proportionally spaced fonts or you won't get good
  376.   results.
  377.  
  378.   If you are working from MS-DOS or from within an application program that
  379.   does not know anything about laser printers, the best way to deal with the
  380.   problems mentioned above is to use a simple control program to send the
  381.   font to the printer. ESF's DOWNLOAD or TSR Download programs will send a
  382.   font to your printer and select it. This will let you print in a single
  383.   soft font. You *won't* be able to justify or center text in a proportion-
  384.   ally spaced font with this method.
  385.  
  386.   If, you want to print multiple soft fonts on a single page or justify text
  387.   in a proportionally spaced font you need an application program that is
  388.   "laser-smart". Laser-smart programs include word processors like WordPer-
  389.   fect, MS Word, MS Works, PC Write, & WordStar. Desktop publishing programs
  390.   like Ventura and PageMaker are also laser-smart. Finally, just about any
  391.   application program that runs under Windows 3.X is laser-smart.
  392.  
  393.   All laser-smart programs require something called a "printer driver". The
  394.   printer driver tells the application program how to use and control
  395.   specific soft fonts. A printer driver is just a database of information
  396.   about fonts. This database will tell the application program all it needs
  397.   to know to use those fonts.
  398.  
  399.   Generally, a printer driver has four types of information in it. The
  400.   printer driver will always have a name for the font that you will use to
  401.   select that font. For example a Roman font might have an entry in the
  402.   database like: Roman 12 point. This is the name you will see when you go
  403.   to select this font in your application program.
  404.  
  405.   A printer driver may have the name and location of the actual soft font
  406.   file. Application programs like WordPerfect and MS Word automatically
  407.   download soft fonts for you. To do this they need the name of the soft
  408.   font file itself, so they can locate and send it to the printer.
  409.  
  410.  
  411.  
  412.                                       7
  413.  
  414.  
  415.  
  416.  
  417.   A printer driver will always have the font selection string needed to ac-
  418.   tivate a font in your printer. In addition, the driver also has to have a
  419.   table that specifies the width of each character in a proportionally
  420.   spaced font, or a width of all characters in a fixed width font.
  421.  
  422.   Some application programs will make their own printer drivers, based on
  423.   the soft fonts you own. WordStar, PC Write, and Windows are examples of
  424.   these types of application programs. Other programs like WordPerfect, MS
  425.   Word, & MS Works require someone else to build printer drivers for them.
  426.   It is important to remember that *no* laser-smart program can use soft
  427.   fonts without a printer driver. If you are using ESF's LaserJet or DeskJet
  428.   soft font packages with WordPerfect or MS Word/Works you *must* install
  429.   our matching printer drivers before you can use these soft fonts. If you
  430.   use something like WordStar, PC Write, or Windows, you *must* go through
  431.   the steps necessary to build a printer driver, yourself, for each of those
  432.   products.
  433.  
  434.   For more information on soft fonts contact: Elfring Soft Fonts, PO Box 61,
  435.   Wasco, IL  60183  USA.  Voice: 708-377-3520  Fax: 708-377-6402
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450.  
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.                                       8
  472.